<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<link href="/css/resource/index.css" rel="stylesheet" />
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

                        <input id="id" name="id" type="hidden" th:value="${zykResourcesChapters.id}">
                        <input id="level" name="level" type="hidden" th:value="${zykResourcesChapters.level}">
                        <input id="parenId" name="parenId" type="hidden" th:value="${zykResourcesChapters.parenId}">
                        <input id="managementResourcesId" name="managementResourcesId" type="hidden" th:value="${zykResourcesChapters.managementResourcesId}">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">课程名称：</label>
                            <div class="col-sm-8">
                                <input id="province" name="managementResourcesId" placeholder="请输入课程名称" class="form-control" type="text">
<!--                                <select name="managementResourcesId" id="province" lay-verify="required" lay-filter="province-le"  class="layui-input" placeholder="请选择课程名称">-->
<!--&lt;!&ndash;                                    <option value="">请选择课程名称</option>&ndash;&gt;-->
<!--                                </select>-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">父章节：</label>
                            <div class="col-sm-8">
                                <input id="parenIdNames" name="parenId" placeholder="请输入父章节" class="form-control" type="text">
<!--                                <select name="parenId" id="parenIdNames" lay-verify="required" lay-filter="parenIdNames-le"  class="layui-input" placeholder="请选择父章节">-->
<!--&lt;!&ndash;                                    <option value="">请选择父章节</option>&ndash;&gt;-->
<!--                                </select>-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">子章节：</label>
                            <div class="col-sm-8">
                               <input id="parenIdName" name="parenIds" placeholder="请输入父章节" class="form-control" type="text">
<!--                                <select name="parenIds" id="parenIdName" lay-verify="required" lay-filter="parenIdName-le"  class="layui-input" placeholder="请选择父章节">-->
<!--&lt;!&ndash;                                    <option value="">请选择子章节</option>&ndash;&gt;-->
<!--                                </select>-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">章节名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" placeholder="请输入章节名称" class="form-control" type="text" th:value="${zykResourcesChapters.name}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">优先级 ：</label>
                            <div class="col-sm-8">
                                <input id="sort" name="sort" placeholder="请输入优先级" class="form-control" type="text" th:value="${zykResourcesChapters.sort}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">视频信息：</label>
                            <div class="col-sm-8">

                                <div class="linkBox">

                                    <div class="resource">
                                        <span class="addElement">添加</span>
                                    </div>

                                    <input type="hidden" id="zyNames" name="zyNames" th:value="${zykResourcesChapters.zyNames}">
                                    <input type="hidden" id="spUrls" name="spUrls" th:value="${zykResourcesChapters.spUrls}">
                                    <input type="hidden" id="zySorts" name="zySorts" th:value="${zykResourcesChapters.zySorts}">

                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">文档：</label>
                                <div class="col-sm-8">
                                    <!--                                <input id="sort" name="sort" placeholder="sort" class="form-control" type="text">-->
                                    <div class="listAll"></div>
                                    <div class="layui-upload">
                                        <button type="button" class="layui-btn" id="test2">文件上传</button>
                                        <input type="hidden" id="wdUrls" name="wdUrls" th:value="${zykResourcesChapters.wdUrls}">
                                    </div>

                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">图片：</label>

                                <div class="col-sm-8">
                                    <div class="listImg"></div>
                                    <button type="button" class="layui-btn" id="test1">上传图片</button>
                                    <input id="tpUrls" name="tpUrls" type="hidden" th:value="${zykResourcesChapters.tpUrls}">
                                </div>
                            </div>

<!--                            <div class="form-group">-->
<!--                                <label class="col-sm-3 control-label">type ：</label>-->
<!--                                <div class="col-sm-8">-->
<!--                                    <input id="type" name="type" placeholder="请输入类型" class="form-control" type="text" th:value="${zykResourcesChapters.type}">-->
<!--                                </div>-->
<!--                            </div>-->

<!--                            <div class="form-group">-->
<!--                                <label class="col-sm-3 control-label">profileId：</label>-->
<!--                                <div class="col-sm-8">-->
<!--                                    <input id="profileId" name="profileId" placeholder="请输入profileId" class="form-control" th:value="${zykResourcesChapters.profileId}" type="text">-->
<!--                                </div>-->
<!--                            </div>-->

                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button type="button" class="btn btn-primary" onclick="update()">提交</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/webJs/jzweb/zykResourcesChapters/edit.js"></script>

</body>
</html>
